package funcInterface.consumer;

import java.util.function.Supplier;

public class SuplierTest {
    public static void main(String[] args) {
        // 不接受参数返回一个结果
        Supplier<String> stringSupplier = () -> "Hello Supplier";
        System.out.println(stringSupplier.get());

        Supplier<String> stringSupplier1 = String::new;
        System.out.println(stringSupplier1);
    }
}
